#ifndef TYPEOFROOMDATAACCESSOR_H
#define TYPEOFROOMDATAACCESSOR_H

#include "../../Headers/Classes/db.h"
#include "../../Headers/Classes/typeofroom.h"

#include <QString>
#include <QSqlTableModel>

class TypeOfRoomDataAccessor : public DB
{
public:
    TypeOfRoomDataAccessor(QString databaseName = "kursovik.sqlite");
    QSqlTableModel * getTypesOfRoom();
    bool setTypeOfRoom(TypeOfRoom typeOfRoom);
    TypeOfRoom * getTypeOfRoom(int id);
    bool deleteTypeOfRoom(TypeOfRoom typeOfRoom);
    bool editTypeOfRoom(TypeOfRoom typeOfRoom);
};

#endif // TYPEOFROOMDATAACCESSOR_H
